package com.learn.actionplatfo.Mapper;

import com.learn.actionplatfo.bean.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    /**
     * 根据id查找用户
     * @param id
     * @return
     */
    User getUserById(int id);

    /**
     * 查找所有的用户信息
     * @return
     */
    List<User> selectAll();
}